#!/usr/bin/python
# -*- coding: UTF-8 -*-
class People:
    def __init__(self, name, age):
        self.__name = name
        self.__age = age
    @property
    def age(self):
        return self.__age

    @age.setter
    def age(self, age):
        if isinstance(age, int):
            self.__age = age
        else:
            raise ValueError

    @age.deleter
    def age(self):
        print('删除年龄数据!')

obj = People("javk", 18)
# print(obj)
print(obj.age)
obj.age = 19
print("obj.age:", obj.age)
del obj.age